package com.bicon.botu.mall.order.processor.fallback;

import com.bicon.botu.core.base.common.Constants;
import com.bicon.botu.core.base.common.entity.BaseResult;
import com.bicon.botu.core.base.common.utils.JsonUtil;
import com.bicon.botu.mall.order.processor.handler.MyCouponsRpc;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 优惠券
 *
 * @author 李双喜
 * @date 2018/5/16 18:10
 */
@Component
public class MyCouponsFallback implements MyCouponsRpc {
    @Override
    public String selectMyCoupons(List<String> myCoupons) {
        return JsonUtil.toJson(new BaseResult(Constants.RESPONSE_CODE_404, Constants.RESPONSE_MESSAGE_404));
    }
}
